import service from '@/utils/request'

export const useSmEvaluateApi = (id: number) => {
	return service.get('/sm/evaluate/' + id)
}

export const useSmEvaluateSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sm/evaluate', dataForm)
	} else {
		return service.post('/sm/evaluate', dataForm)
	}
}